package com.lisp.algorithm.concurrent;

public class TestUtil {

    public static void test(int threadCount, int loopCount, Runnable r) {
        for(int i=0; i<threadCount; i++) {
            new Thread(() -> {
                for(int loop=0; loop<loopCount; loop++) {
                    r.run();
                }
            }).start();
        }
    }
}
